window.onload=function(){		
  var oWrapDiv=document.getElementById("swipe-wrap-box").getElementsByTagName("div");
  var oPostion=document.getElementById("position");
  for(var i=0;i<oWrapDiv.length;i++){
    var aLi=document.createElement('li');//创建一个li
    oPostion.appendChild(aLi);//在li里边的第一个里插入
  }
  var oPostionLi=oPostion.getElementsByTagName("li");
  oPostionLi[0].className="cur";
  for(var i=0;i<oPostionLi.length;i++){
    oPostionLi[i].style.width=100/oPostionLi.length+'%';
  }  
	var bullets = document.getElementById('position').getElementsByTagName('li');
	var banner = Swipe(document.getElementById('mySwipe'), {
		auto: 2000,
		continuous: true,
		disableScroll:false,
		callback: function(pos) {
			var i = bullets.length;
			while (i--) {
			  bullets[i].className = ' ';
			}
			bullets[pos].className = 'cur';
		}
	});
// 栏目点击
  var oColumn=document.getElementById('column');
  var oColumnDown=document.getElementById('ColumnDown'); 
      oColumn.onclick=function(){
         (oColumnDown.style.display=='block')? (oColumnDown.style.display="none"): (oColumnDown.style.display="block");
      }
//栏目点击END
//搜索input
  var oSo=document.getElementById("so");
  var oNavDown=document.getElementById("nav-down");
  
  oSo.onfocus=function(){
    oNavDown.className="nav-down-input";
  }
  oSo.onblur=function(){
    oNavDown.className="";
  }
//搜索inputEND

}
